.wrap {
    border-radius: 4px;
    position: relative;
    height: 198px;
    background: #fafafa;
}

.base {
    position: absolute;
    top: 25px;
    left: 77px;
    height: 112px;
    width: calc(100% - 77px - 16px);
    border-left: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}

.arrow {
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 10px solid #ededed;
}

@scaleHeight: 8px;
.baseNum {
    position: absolute;
    left: -30px;
    bottom: 0;
    white-space: nowrap;
    width: 20px;
    transform: translateY(50%);
    text-align: right;
}

.baseTitle {
    position: absolute;
    bottom: -40px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.baseEnd {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
}

@dotSize: 5px;
@arrowSize: 3px;

.sourceWrap {
    height: 100%;
    position: absolute;
}

.tags {
    border-radius: 4px;
    padding: 6px 12px;
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    line-height: 1;
    white-space: nowrap;
}

.tagsLine {
    position: absolute;
    width: 1px;
    bottom: 0;
    &::after,
    &::before {
        position: absolute;
        content: '';
        display: block;
    }
    &::after {
        left: -@arrowSize + 1;
        top: 0;
        width: 0;
        height: 0;
        border-color: inherit;
        border-right: @arrowSize solid transparent;
        border-left: @arrowSize solid transparent;
        border-top: @arrowSize solid;
    }
    &::before {
        left: -@dotSize / 2 + 1;
        bottom: 0;
        width: @dotSize;
        height: @dotSize;
        border-radius: 50%;
        background-color: inherit;
    }
}

.popLine {
    display: flex;
}

.popLabel {
    flex: 1 0 50%;
    text-align: right;
    white-space: nowrap;
}

.popValue {
    flex: 1 0 50%;
    padding-left: 6px;
    white-space: nowrap;
    align-items: center;
    padding-right: 32px;
}

.changeNumber {
    &.up {
        color: #ff0000;
    }
    &.down {
        color: #44c69d;
    }
}

.changeArrow {
    width: 3px;
    height: 12px;
    position: relative;
    margin-right: 4px;
    &.up {
        background-color: #ff0000;
        color: #ff0000;
    }
    &.down {
        background-color: #44c69d;
        color: #44c69d;
        transform: rotate(180deg);
    }
    &.same {
        display: none;
    }
    &::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-color: inherit;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        border-bottom: 5px solid;
    }
}

.popOverlay {
    :global {
        // 把popover往上挪挪。。
        .ant-popover-content {
            transform: translateY(-20px);
            .ant-popover-arrow {
                transform: translate(-50%, 10px) rotate(45deg);
            }
        }
    }
}
